const options = {
    method: 'POST',
    headers: {
        Authorization: 'Bearer sk-wrilwzaclgftxgshxeienqtsjjmuqegomwhqeiskkmevvcpb',
        'Content-Type': 'application/json'
    },
    body: '{"model":"Kwai-Kolors/Kolors","prompt":"an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea","negative_prompt":"<string>","image_size":"1024x1024","batch_size":1,"seed":45888,"num_inference_steps":20,"guidance_scale":7.5,"image":"data:image/png;base64, XXX"}'
};

fetch('https://api.siliconflow.cn/v1/images/generations', options)
    .then(response => response.json())
    .then(response => console.log(response))
    .catch(err => console.error(err));